import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/brandofficial',
  component: Layout,
  redirect: '/brandofficial/index',
  name: 'brandofficial',
  meta: {
    title: '品牌官配置',
    icon: 'tabler:brand-abstract',
  },
  children: [
    {
      path: 'index',
      name: 'brandofficialIndex',
      component: () => import('@/views/brandofficial/index.vue'),
      meta: {
        title: '专题页',
      },
    },
    {
      path: 'ticket',
      name: 'brandofficialTicket',
      component: () => import('@/views/brandofficial/ticket.vue'),
      meta: {
        title: '裂变券',
      },
    },
    {
      path: 'ticketDetail',
      name: 'brandofficialTicketDetail',
      component: () => import('@/views/brandofficial/ticketDetail.vue'),
      meta: {
        title: '裂变券配置',
        menu: false,
        activeMenu: '/brandofficialAccount/ticket',
      },
    },
  ],
}

export default routes
